﻿//-----------------------------------------------------------------------
// <copyright file="FilterConfig.cs" company="CronopioDD">
//     Copyright CronopioDD. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace ProyectoGoya
{
    using System.Web.Mvc;

    /// <summary>
    /// FilterConfig class
    /// </summary>
    public class FilterConfig
    {
        #region Constructor

        /// <summary>
        /// Prevents a default instance of the FilterConfig class from being created
        /// </summary>
        private FilterConfig()
        {
        }

        #endregion

        #region Public Methods

        /// <summary>
        /// Method for registering Global Filters
        /// </summary>
        /// <param name="filters">Represents a class that contains all the global filters</param>
        public static void RegisterGlobalFilters(GlobalFilterCollection filters)
        {
            if (filters != null)
            {
                filters.Add(new HandleErrorAttribute());
            }
        }

        #endregion
    }
}